package com.wk.springboot.spring.aware;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * Author: Administrator
 * Date: 2020/11/25 : 21:07
 * Description: 编写获取ApplicationContext的工具类测支持类
 */

@Component
public class ApplicationContextUtilsSupport implements ApplicationContextAware {
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ApplicationContextUtils.setApplicationContext(applicationContext);
    }
}
